package cource.FinalExam;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * @author zeng
 * @data 2021/05/16 22:35
 */
public class InputListener implements ActionListener {
    String filePath = null;
    TextField Filename = null;

    /**
     *
     * @param Filename 文本域
     */
    public InputListener(TextField Filename) {
        this.filePath = "";
        this.Filename = Filename;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        this.filePath = this.Filename.getText();
        System.out.println(this.filePath);
    }
}
